/**
 * Filename: YNAlbum.java
 *
 * @author Firefly
 * @contact postfirefly@163.com
 * @time 2016/2/29 18:27
 */
package com.github.postsanf.yinian.bean;

/**
 * 忆年相册类
 */
public class YNAlbum extends BaseBean {
    private String markColor;
    private String markID;
    private String markRepeat;
    private String markDate;
    private String markContent;

    private int groupid;                                        // ID
    private String gname;                                        // 相册名
    private String gpic;                                        // 背景图
    private String gnum;                                        // 组员人数
    private int gpicnum;                                     // 照片张数
    private String geventnum;                             // 动态数
    private String gtime;                                        // 创建时间
    private int gmnotify = 0;                                    // 消息提醒 O 无新动态  1 有新动态
    private String gcreator;                                    // 创建者ID
    private String gtype;                                        // 组性质
    private String ginvite;                                        // 组邀请码
    private String gimid;                                        // 环信组ID

    // 官方相册字段
    private String gintroduceText;                              // 官方相册介绍文字
    private String gintroducePic;                               // 官方相册介绍配图
    private int isInAlbum;                                   // 是否加入了官方相册  0 未加入    /   1 已加入
    private boolean isSelect = false;

    private String shareTitle;
    private String shareContent;
    private String bannerPic;
    private String introducePic;
    private boolean isHuoDong;

    public boolean isHuoDong() {
        return isHuoDong;
    }

    public void setHuoDong(boolean huoDong) {
        isHuoDong = huoDong;
    }

    public String getShareTitle() {
        return shareTitle;
    }

    public void setShareTitle(String shareTitle) {
        this.shareTitle = shareTitle;
    }

    public String getShareContent() {
        return shareContent;
    }

    public void setShareContent(String shareContent) {
        this.shareContent = shareContent;
    }

    public String getBannerPic() {
        return bannerPic;
    }

    public void setBannerPic(String bannerPic) {
        this.bannerPic = bannerPic;
    }

    public String getIntroducePic() {
        return introducePic;
    }

    public void setIntroducePic(String introducePic) {
        this.introducePic = introducePic;
    }

    public String getGeventnum() {
        return geventnum;
    }

    public void setGeventnum(String geventnum) {
        this.geventnum = geventnum;
    }

    public String getMarkColor() {
        return markColor;
    }

    public void setMarkColor(String markColor) {
        this.markColor = markColor;
    }

    public String getMarkID() {
        return markID;
    }

    public void setMarkID(String markID) {
        this.markID = markID;
    }

    public String getMarkRepeat() {
        return markRepeat;
    }

    public void setMarkRepeat(String markRepeat) {
        this.markRepeat = markRepeat;
    }

    public String getMarkDate() {
        return markDate;
    }

    public void setMarkDate(String markDate) {
        this.markDate = markDate;
    }

    public String getMarkContent() {
        return markContent;
    }

    public void setMarkContent(String markContent) {
        this.markContent = markContent;
    }

    public String getGimid() {
        return gimid;
    }

    public void setGimid(String gimid) {
        this.gimid = gimid;
    }

    public boolean isSelect() {
        return isSelect;
    }

    public void setSelect(boolean isSelect) {
        this.isSelect = isSelect;
    }

    public String getGintroduceText() {
        return gintroduceText;
    }

    public void setGintroduceText(String gintroduceText) {
        this.gintroduceText = gintroduceText;
    }

    public String getGintroducePic() {
        return gintroducePic;
    }

    public void setGintroducePic(String gintroducePic) {
        this.gintroducePic = gintroducePic;
    }

    public int getIsInAlbum() {
        return isInAlbum;
    }

    public void setIsInAlbum(int isInAlbum) {
        this.isInAlbum = isInAlbum;
    }

    public int getGpicnum() {
        return gpicnum;
    }

    public void setGpicnum(int gpicnum) {
        this.gpicnum = gpicnum;
    }

    public String getGinvite() {
        if (ginvite==null)
            return "";
        return ginvite;
    }

    public void setGinvite(String ginvite) {
        this.ginvite = ginvite;
    }

    public String getGcreator() {
        return gcreator;
    }

    public void setGcreator(String gcreator) {
        this.gcreator = gcreator;
    }

    public String getGtype() {
        if (gtype==null)
            return "";
        return gtype;
    }

    public void setGtype(String gtype) {
        this.gtype = gtype;
    }

    public int getGroupid() {
        return groupid;
    }

    public void setGroupid(int groupid) {
        this.groupid = groupid;
    }

    public String getGname() {
        if (gname == null)
            return "";
        return gname;
    }

    public void setGname(String gname) {
        this.gname = gname;
    }

    public String getGpic() {
        return gpic;
    }

    public void setGpic(String gpic) {
        this.gpic = gpic;
    }

    public String getGnum() {
        return gnum;
    }

    public void setGnum(String gnum) {
        this.gnum = gnum;
    }

    public String getGtime() {
        return gtime;
    }

    public void setGtime(String gtime) {
        this.gtime = gtime;
    }

    public int getGmnotify() {
        return gmnotify;
    }

    public void setGmnotify(int gmnotify) {
        this.gmnotify = gmnotify;
    }

    @Override
    public boolean equals(Object o) {
        if (o instanceof YNAlbum) {
            return this.groupid == ((YNAlbum) o).groupid;
        }
        return super.equals(o);
    }
}
